Part Number Hot Search : 
300CA FDT434P MS310 BC328BU BA6196FP MPS712 SC6200 AN1296
Product Description
Full Text Search
 

To Download AZ4000V4 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  user?s manual target devices v r 4100 series? v r 4300 series? v r 5432? target real-time os rx4000 itron 4.0 target system performance analyzer az4000 ver. 4.00 az4000 ver.4.00 system performance analyzer document no. u15031ej1v0um00 (1st edition) date published january 2001 n cp(k) printed in japan ? 2001
2 user?s manual u15031ej1v0um [memo]
user?s manual u15031ej1v0um 3 v r 4100 series, v r 4300 series, and v r 5432 are trademarks of nec corporation. windows and windows nt are either registered trademarks or trademarks of microsoft corporation in the united states and/or other countries. pc/at is a trademark of international business machines corporation. pentium is a trademark of intel corporation. green hills software is a trademark of green hills software, inc.
4 user?s manual u15031ej1v0um the export of this product from japan is regulated by the japanese government. to export this product may be prohibited without governmental license, the need for which must be judged by the customer. the export or re-export of this product from a country other than japan may also be prohibited without a license from that country. please call an nec sales representative. m8e 00. 4 the information in this document is current as of august, 2000. the information is subject to change without notice. for actual design-in, refer to the latest publications of nec's data sheets or data books, etc., for the most up-to-date specifications of nec semiconductor products. not all products and/or types are available in every country. please check with an nec sales representative for availability and additional information. no part of this document may be copied or reproduced in any form or by any means without prior written consent of nec. nec assumes no responsibility for any errors that may appear in this document. nec does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from the use of nec semiconductor products listed in this document or any other liability arising from the use of such products. no license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of nec or others. descriptions of circuits, software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples. the incorporation of these circuits, software and information in the design of customer's equipment shall be done under the full responsibility of customer. nec assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits, software and information. while nec endeavours to enhance the quality, reliability and safety of nec semiconductor products, customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely. to minimize risks of damage to property or injury (including death) to persons arising from defects in nec semiconductor products, customers must incorporate sufficient safety measures in their design, such as redundancy, fire-containment, and anti-failure features. nec semiconductor products are classified into the following three quality grades: "standard", "special" and "specific". the "specific" quality grade applies only to semiconductor products developed based on a customer-designated "quality assurance program" for a specific application. the recommended applications of a semiconductor product depend on its quality grade, as indicated below. customers must check the quality grade of each semiconductor product before using it in a particular application. "standard": computers, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots "special": transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster systems, anti-crime systems, safety equipment and medical equipment (not specifically designed for life support) "specific": aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems and medical equipment for life support, etc. the quality grade of nec semiconductor products is "standard" unless otherwise expressly specified in nec's data sheets or data books, etc. if customers wish to use nec semiconductor products in applications not intended by nec, they must contact an nec sales representative in advance to determine nec's willingness to support a given application. (note) (1) "nec" as used in this statement means nec corporation and also includes its majority-owned subsidiaries. (2) "nec semiconductor products" means any semiconductor product developed or manufactured by or for nec (as defined above). ? ? ? ? ? ?
user?s manual u15031ej1v0um 5 regional information some information contained in this document may vary from country to country. before using any nec product in your application, piease contact the nec office in your country to obtain a list of authorized representatives and distributors. they will verify: ? device availability ? ordering information ? product release schedule ? availability of related technical literature ? development environment specifications (for example, specifications for third-party tools and components, host computers, power plugs, ac supply voltages, and so forth) ? network requirements in addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary from country to country. nec electronics inc. (u.s.) santa clara, california tel: 408-588-6000 800-366-9782 fax: 408-588-6130 800-729-9288 nec electronics (germany) gmbh duesseldorf, germany tel: 0211-65 03 02 fax: 0211-65 03 490 nec electronics (uk) ltd. milton keynes, uk tel: 01908-691-133 fax: 01908-670-290 nec electronics italiana s.r.l. milano, italy tel: 02-66 75 41 fax: 02-66 75 42 99 nec electronics (germany) gmbh benelux office eindhoven, the netherlands tel: 040-2445845 fax: 040-2444580 nec electronics (france) s.a. velizy-villacoublay, france tel: 01-30-67 58 00 fax: 01-30-67 58 99 nec electronics (france) s.a. madrid office madrid, spain tel: 91-504-2787 fax: 91-504-2860 nec electronics (germany) gmbh scandinavia office taeby, sweden tel: 08-63 80 820 fax: 08-63 80 388 nec electronics hong kong ltd. hong kong tel: 2886-9318 fax: 2886-9022/9044 nec electronics hong kong ltd. seoul branch seoul, korea tel: 02-528-0303 fax: 02-528-4411 nec electronics singapore pte. ltd. united square, singapore tel: 65-253-8311 fax: 65-250-3583 nec electronics taiwan ltd. taipei, taiwan tel: 02-2719-2377 fax: 02-2719-5951 nec do brasil s.a. electron devices division guarulhos-sp brasil tel: 55-11-6462-6810 fax: 55-11-6462-6829 j00.7
6 user?s manual u15031ej1v0um preface target readers this manual is intended for users who wish to design and develop application systems using the v r 4100 series, v r 4300 series, and v r 5432. purpose this manual is intended for users to understand the general functions and basic operations of the az4000. organization this manual contains the following information: ? overview y creation of az monitor ? installation ? operation methods ? window reference ? list of error messages ? index how to use this manual it is assumed that the reader of this manual has general knowledge of microcontrollers, c language, assembly language, and debugging as well as basic knowledge of windows tm operations. to understand the hardware functions and instruction functions of the v r 4100 series, v r 4300 series, and v r 5432: refer to the user?s manual for the relevant product. conventions [ ]: indicates a menu. text : indicates a button in a window or dialog box. << >>: indicates a text string displayed in a window or dialog box. data significance: higher digits on the left and lower digits on the right memory map address: higher address on the top and lower address on the bottom active low representation: (overscore over pin or signal name) note : footnote for item marked with note in the text caution : information requiring particular attention remark : supplementary information numerical representation: binary... xxxx or xxxxb decimal... xxxx hexadecimal... 0x xxxx prefix indicating the power of 2 (address space, memory capacity): k (kilo): 2 10 = 1024 m (mega): 2 20 = 1024 2
user?s manual u15031ej1v0um 7 related documents when using this manual, the following documents may be referenced. the related documents indicated in this publication may include preliminary versions. however, preliminary versions are not marked as such. documents related to development tools for v r 4100 series, v r 4300 series, and v r 5432 (user?s manuals) document name document no. basics u14833e technical u14835e rx4000 itron4.0 (real-time os) installation u14834e rd4000 (task debugger) to be prepared az4000 ver. 4.00 (system performance analyzer) this manual
8 user?s manual u15031ej1v0um contents chapter 1 overview.......................................................................................................... ................ 11 1.1 overview.................................................................................................................... .................. 11 1.2 functions and features ...................................................................................................... ....... 12 1.3 system configuration ........................................................................................................ ........ 13 1.3.1 when using debug monitor .................................................................................................. ......... 13 1.3.2 when using rom emulator ................................................................................................... ........ 14 1.4 operating environment....................................................................................................... ....... 15 chapter 2 creation of az monitor .......................................................................................... 16 2.1 creation of az monitor (monitor program) .............................................................................. 16 2.1.1 creation of user?s own coding block....................................................................................... ....... 16 2.1.2 creation of az monitor .................................................................................................... .............. 20 2.2 cautions .................................................................................................................... .................. 21 2.2.1 points to be noted when creating load modules............................................................................ 2 1 2.2.2 points to be noted when debugging ......................................................................................... ..... 22 2.2.3 points to be noted for az trace data...................................................................................... ........ 22 chapter 3 installation...................................................................................................... ............. 23 3.1 installation of az4000...................................................................................................... ........... 23 3.2 activation and termination .................................................................................................. ..... 23 3.2.1 activation method......................................................................................................... ................. 23 3.2.2 termination method ........................................................................................................ .............. 23 chapter 4 operation methods ................................................................................................ ... 24 chapter 5 window reference................................................................................................. .... 27 5.1 overview of az4000 windows and dialog boxes ................................................................... 27 5.2 relations among az4000 windows and dialog boxes........................................................... 28 5.3 descriptions of windows and dialog boxes ........................................................................... 29 appendix a error messages .................................................................................................. ...... 83 appendix b index ............................................................................................................ .................... 85
user?s manual u15031ej1v0um 9 list of figures figure no. title page 1-1 system configuration diagram (when using debug monitor) ..................................................................... ....13 1-2 system configuration diagram (when using rom emulator) ...................................................................... ...14 2-1 example of timer counter operations (up counter)............................................................................ ............17 5-1 relations among az4000 windows and dialog boxes............................................................................. ........28 5-2 az4000 window ............................................................................................................... ................................30 5-3 az option dialog box ........................................................................................................ ...............................35 5-4 analyze window .............................................................................................................. .................................37 5-5 analyze window (delete mode)................................................................................................ ........................42 5-6 analyze window (standard mode) .............................................................................................. .....................42 5-7 analyze window (detail mode)................................................................................................ .........................43 5-8 object select dialog box .................................................................................................... ..............................49 5-9 pattern search dialog box (when task switch is selected).................................................................... ........52 5-10 cpu window ................................................................................................................. ...................................56 5-11 pattern set dialog box (when task switch is selected)...................................................................... ............61 5-12 pattern window ............................................................................................................. ...................................66 5-13 how to read patterns....................................................................................................... ................................68 5-14 trace view window .......................................................................................................... ................................72 5-15 how to read az trace data .................................................................................................. ...........................74 5-16 trace search dialog box .................................................................................................... ..............................77 5-17 example of trace search settings (when searching for task ?tsk(1001)?)....................................................7 8 5-18 example of trace search settings (when task ?tsk(1001)? searches for location where service call ?sta_tsk? was issued) .............................................................................. ..........79 5-19 example of trace search settings (when task ?tsk(1001)? searches for location where service call ?sta_tsk? was issued for task ?tsk(1002)?) .......................................................79 5-20 file select dialog box..................................................................................................... ..................................80
10 user?s manual u15031ej1v0um list of tables table no. title page 5-1 list of az4000 windows and dialog boxes ..................................................................................... ................ 27 5-2 list of marks used in state transition charts (when used in rx4000)......................................................... .43 5-3 pattern search modes ........................................................................................................ ............................. 53 5-4 pattern search conditions (when search mode has been set to ?task switch?) .......................................... 53 5-5 pattern search conditions (when ?service call(call, return, error)? has been specified as search mode)............................................ 54 5-6 pattern modes............................................................................................................... ................................... 62 5-7 pattern search conditions (when search mode has been set to ?task switch?) .......................................... 62 5-8 pattern search conditions (when ?service call(call, return, error)? has been specified as search mode)............................................ 63 5-9 view file types and extensions .............................................................................................. ........................ 81
user?s manual u15031ej1v0um 11 chapter 1 overview as steady progress is made in developing microprocessors with ever higher levels of performance and functionality, user programs are growing in both size and complexity. although logical debugging of these user programs can be readily performed using conventional debuggers, timing-related analyses such as analysis of abnormalities due to the timing of processing or evaluation of overall system performance can be difficult and time-consuming. in response to these market conditions, nec, as a provider of powerful microprocessors such as the v r 4100 series, v r 4300 series, and v r 5432 64-bit microcontrollers, has developed and marketed the system performance analyzer (hereafter referred to as ?the az4000?) to provide support for quantitative performance analysis of user programs. the az4000 is a performance analysis tool that is used to analyze the execution status transitions, cpu execution efficiency, and other performance characteristics of user programs included with the rx4000 real-time os (hereafter referred to as ?the rx4000?). the az4000 can be linked with the debugger to trace information (service calls, interrupt events, etc.) that is specific to the real-time os, and it provides graphical functions to display the resulting data. these functions can be used to easily analyze task execution state transitions and access to objects such as event flags and semaphores. the az4000 is compliant with the tool interface protocol (hereafter, ?tip?), which means that the az4000?s functions can be easily used with any debugger that also complies with this interface. 1.1 overview the az4000 is a performance analysis tool that is used to analyze the execution state transitions, cpu execution efficiency, and other performance characteristics of user programs included with a rtos (real-time os), and it provides graphical functions to display the resulting data. the az trace data that is collected by the az4000 includes detected events (service calls, interrupts, etc.) that controlled the rtos, and this data can be used to easily analyze task execution state transitions and access to objects such as event flags and semaphores. the az4000 uses a ?soft trace form.?
chapter 1 overview user?s manual u15031ej1v0um 12 1.2 functions and features the az4000?s functions and features are described below. (1) graphical display of task execution state transition a graphical display of a task or interrupt?s execution state transition (graph?s horizontal axis indicates time and vertical axis indicates task or interrupt name, etc.) facilitates analysis of system progress caused by task switching or interrupt events. in addition, symbols are used to indicate the status of access via service calls to various objects to facilitate checking of task execution state transition. (2) graphical display of cpu usage the display of cpu usage status within a specified time period provides histograms that facilitate analysis of the system?s overall execution efficiency. (3) processing time statistics frequency calculations of execution time for any processing related to the user programs can be performed, enabling worst-case values and average values to be obtained. (4) operation linked with debugger window user can jump from the az4000?s window to a window displaying the debugger?s source text, disassembled text, or memory contents to identify problems easily.
chapter 1 overview user?s manual u15031ej1v0um 13 1.3 system configuration the az4000 expands upon the debugger?s functions by communicating with the debugger via tip-compliant messages. the az4000?s system configuration and supported debug environment are described below. 1.3.1 when using debug monitor figure 1-1. system configuration diagram (when using debug monitor) host machine target system messages rx4000 compiler az4000 vr4xxx tip-compliant debugger caution at least one unused timer counter is required on the target system (the v r 4100/4300/5432 cp0 register?s counter register that is used by the rx4000 can be shared).
chapter 1 overview user?s manual u15031ej1v0um 14 1.3.2 when using rom emulator figure 1-2. system configuration diagram (when using rom emulator) host machine target system messages rom emulator vr4xxx rx4000 compiler az4000 tip-compliant debugger caution at least one unused timer counter is required on the target system (the v r 4100/4300/5432 cp0 register?s counter register that is used by the rx4000 can be shared).
chapter 1 overview user?s manual u15031ej1v0um 15 1.4 operating environment when using the az4000, a operating environment for the debugger is required. (1) host machine pc-9821 series, pc98-nx series, or ibm pc/at? compatible y cpu: pentium? (100 mhz or above) y main memory: 32 mb or above y os: windows 95, windows 98, or windows nt? 4.0 y screen size: 640 400 pixels or greater (800 600 pixels or greater is recommended) (2) software y c compiler package ccmipe: manufactured by green hills software?, inc. (u.s.a.) y real-time os rx4000 ( itron4.0) y debugger tip-compliant debugger (3) rom emulator any rom emulator that can be connected to a tip-compliant debugger.
user?s manual u15031ej1v0um 16 chapter 2 creation of az monitor this chapter describes the method used to create the az monitor that is required when using the az4000, along with relevant caution points. 2.1 creation of az monitor (monitor program) when using the az4000 with a soft trace form, the az4000?s az monitor (monitor program) collects az trace data. the az4000 collects the timing information required for this via the user?s target timer counter (the v r 4100/4300/5432 cp0 register?s counter register that is used by the rx4000 can be shared as the timer counter). consequently, the az monitor cannot be completed until a monitor program has been created in which the timer counter?s control block is coded to suit the user?s target (this block is hereafter called the ?user?s own coding block?). a step-by-step description of the method for creating the az monitor is given below. 2.1.1 creation of user?s own coding block this is the coding of the control block for the target timer counter. when creating this coding block, refer to the sample programs contained in the directories listed below. y for v r 4100 nectools32\smp4100_ghs \az4000\big\azusr.mip nectools32\smp4100_ghs \az4000\little\azusr.mip y for v r 4300 nectools32\smp4300_ghs \az4000\big\azusr.mip nectools32\smp4300_ghs \az4000\little\azusr.mip y for v r 5432 nectools32\smp5000_ghs \az4000\big\azusr.mip nectools32\smp5000_ghs \az4000\little\azusr.mip
chapter 2 creation of az monitor user?s manual u15031ej1v0um 17 [specification of data and functions in user?s own coding block] an example of the data and functions specified in the user?s own coding block is given in figure 2-1 (for the target timer counter). figure 2-1. example of timer counter operations (up counter) clear and start start timer count interval period tpc count value = n count value = 0 y y y y _azmon_maxcount (data) this specifies the timer?s maximum count value (n value in figure 2-1 ). data type: specify as 4-byte integer type (.word) when rx4000 and timer are sharing counter register: 0x000 y y y y _azmon_countmode (data) this specifies the count mode. data type: specify as single-byte integer type (.byte) data setting: 0x00 ... up counter, 0x01 ... down counter when rx4000 and timer are sharing counter register: 0x00 y y y y _azmon_timepercount (data) this specifies the time per count in microseconds ( s). (see tpc value in figure 2-1 .) data type: specify as 4-byte floating decimal type (.float) when rx4000 and timer are sharing counter register: 0.0 y y y y _azmon_inittimer (function) this specifies the timer?s initialization processing. input register: $ra ... return address output register: none volatile register: according to c-language call conventions when rx4000 and timer are sharing counter register: processing is not specified
chapter 2 creation of az monitor user?s manual u15031ej1v0um 18 y y y y _azmon_getcounter (function) this specifies the timer?s counter value read processing. input register: $ra ... return address output register: $v0 ... counter value volatile register: $at, $t4 when rx4000 and timer are sharing counter register: specifies counter register read processing cautions 1. when sharing the v r 4100/4300/5432?s cp0 register that is used by the rx4000, do not mask the rx4000?s ?basic clock interrupt.? 2. the accuracy of times indicated as az trace data depends on the _azmon_timepercount value (tpc value in figure 2-1). 3. correct time information will not be displayed if the event interval in the collected az trace data is longer than the timer counter?s interval.
chapter 2 creation of az monitor user?s manual u15031ej1v0um 19 [example of user?s own coding block (azusr.mip)] .globl __azmon_maxcount .globl __azmon_countmode .globl __azmon_timepercount .globl __azmon_inittimer .globl __azmon_getcounter .section?.azmon_t?,.text .align 4 __azmon_maxcount: .word 0x0 /* maxcountvalue */ ? timer ? s maximum count value .section?.azmon_t?,.text .align 4 __azmon_countmode: .byte 0 /* countmode */ ? timer ? s count mode .section?.azmon_t?,.text .align 4 __azmon_timepercount: .float 0.0 /* timepercount */ ? time per count (unit: s) .section?.azmon_t?,.text .align 4 __azmon_inittimer: jr $ra /* the-code-of-inittimer */ ? timer ? s initialization processing code .section?.azmon_t?,.text .align 4 __azmon_getcounter: mfc0 $v0, $9 /* the-code-of-getcounter */ ? timer ? s count value read processing code nop nop jr $ra
chapter 2 creation of az monitor user?s manual u15031ej1v0um 20 2.1.2 creation of az monitor after creating the user?s own coding block, perform the following steps to complete the az monitor (azmon.o). y use ccmipe (manufactured by green hills software, inc.) start the batch file mkmon.bat note 1 , then create the monitor program azmon.o note 2 . it may be necessary to revise the tool path specified in mkmon.bat to suit the development environment being used. mkmon.bat specifies the following processing. 1. assemble azusr.mip note 3 2. link to azcore.o and create azmon.o notes 1. mkmon.bat (batch file) y for v r 4100 nectools32\smp4100_ghs \az4000\big\ mkmon.bat nectools32\smp4100_ghs \az4000\little\ mkmon.bat y for v r 4300 nectools32\smp4300_ghs \az4000\big\ mkmon.bat nectools32\smp4300_ghs \az4000\little\ mkmon.bat y for v r 5432 nectools32\smp5000_ghs \az4000\big\ mkmon.bat nectools32\smp5000_ghs \az4000\little\ mkmon.bat 2. azmon.o (monitor program) y for v r 4100 nectools32\smp4100_ghs \az4000\big\ azmon.o nectools32\smp4100_ghs \az4000\little\ azmon.o y for v r 4300 nectools32\smp4300_ghs \az4000\big\ azmon.o nectools32\smp4300_ghs \az4000\little\ azmon.o y for v r 5432 nectools32\smp5000_ghs \az4000\big\ azmon.o nectools32\smp5000_ghs \az4000\little\ azmon.o 3. azusr.mip (sample program with user?s own coding block) y for v r 4100 nectools32\smp4100_ghs \az4000\big\ azusr.mip nectools32\smp4100_ghs \az4000\little\ azusr.mip y for v r 4300 nectools32\smp4300_ghs \az4000\big\ azusr.mip nectools32\smp4300_ghs \az4000\little\ azusr.mip y for v r 5432 nectools32\smp5000_ghs \az4000\big\ azusr.mip nectools32\smp5000_ghs \az4000\little\ azusr.mip
chapter 2 creation of az monitor user?s manual u15031ej1v0um 21 2.2 cautions the following are cautions concerning the use of the soft trace form. 2.2.1 points to be noted when creating load modules the link files used when building the load module in two parts are described below. ? user program?s load module sit file, user processing program (task, handler), initialization processing file (initialization handler), idle handler, run-time library file, link directive file ? kernel load module sct file, initialization processing file (hardware initialization block), az monitor, rx4000 itron4.0 library file, entry processing file, link directive file caution when creating a kernel load module, the az monitor must be specified before the nucleus library (librx.a) in the link directive file. [specification of sections in az monitor] when creating the load module (or the nucleus load module when the load module is divided in two), be sure to specify the az monitor sections shown below in the link directive file. ? .azmon_b: az monitor?s work area ? .azmon_t: az monitor?s text/data area caution the .azmon_b section must be allocated to a read/write-accessible area of ram. do not perform any write operations (initialization processing, etc.), such as via the user program in this ram area. [example of az monitor section specifications] .system_entry 0x80000180 : .system 0x80004000 : .sct : .azmon_t 0x8000c000 : this specification is added. .azmon_b 0x8000d000 : this specification is added. .boot 0xbfc00000 : .text 0x80010000 : .sit : .data : .sdata : .sbss : .bss : .stack 0x8002c000 :
chapter 2 creation of az monitor user?s manual u15031ej1v0um 22 2.2.2 points to be noted when debugging (1) resources used by az4000 ? az monitor?s text/data area: approximately 1600 bytes ? az monitor?s work area (.bss attribute): 64 bytes ? trace buffer region: 4 kb to 4 mb (recommended: 64 kb to 1 mb) ? timer counter: 1 (timing information displayed as az trace data is captured from the target?s timer counter) caution since timing information is captured from the target?s timer counter when collecting trace data, a az4000-compatible timer counter is required (the v r 4100/4300/5432 cp0 register?s counter register that is used by the rx4000 can be shared). (2) trace memory ? to clear the contents of trace memory, select ?az trace on? note . note this mode sets the az4000?s trace function as valid. to set this function, go to the az4000 window?s menu bar and enter a check next to [az trace on] in the [o peration] menu. this enables collection of az trace data. (3) time measurements ? when sharing the timer counter (the v r 4100/4300/5432 cp0 register?s counter register) that is used by the rx4000 with the timer counter for capturing the az4000?s timing information, do not mask the rx4000?s ?basic clock interrupt.? ? the accuracy of times indicated as az trace data depends on the timer counter?s ?count up? time. for example, if the timer counter has a count up time (tpc) of 1 s, the unit for times displayed by the az4000 is 1 s. ? correct time information will not be displayed if the event interval in the collected az trace data is longer than the timer counter?s interval. 2.2.3 points to be noted for az trace data (1) items that cannot be detected the items described below cannot be detected as az trace data. ? start and end of cycle start handler ? start and end of interrupt service routine that does not operate via the rx4000 (start and end of interrupt service routine registered via cre_isr or acre_isr are detected) ? start and end of service call exception handler (occurrence and recovery of cpu exception handler registered via def_exc are detected) ? service call (ext_tsk, exd_tsk) address consequently, the jump function cannot be used from this location on the state transition diagram.
user?s manual u15031ej1v0um 23 chapter 3 installation this chapter describes the az4000?s installation method and activation/termination methods. 3.1 installation of az4000 perform the following steps to install the az4000. <1> the software is provided on cd-rom media. insert the cd-rom disc into the host machine?s cd-rom drive. <2> using a program such as windows explorer, start the executable file ?setup.exe? in the cd-rom?s ?disk1? directory. next, follow the instructions given in the displayed message to install the az4000. 3.2 activation and termination 3.2.1 activation method use either of the following methods to activate the az4000. ? double-click ?az4000.exe? in the ?nectools32\bin? directory. ? select the az4000 icon from the windows start menu. 3.2.2 termination method use either of the following methods to close the az4000. ? select [file] [ex it] on the az4000 window?s menu bar. ? click the close button at the upper right part of the az4000 window.
user?s manual u15031ej1v0um 24 chapter 4 operation methods the basic debugging method used with the az4000 is described step by step below. (1) start debugger start the debugger. (2) start az4000 start the az4000 and open the az4000 window. make sure that ?connected? is displayed in the <>. ?connected? is displayed to indicate a successful connection to the debugger. (3) download load module download the load module that was created to support the az4000. make sure that ?rx+az loaded? is displayed on the status bar in the az4000 window. (4) settings in az option dialog box open the az option dialog box and set following options. ? ? ? ? settings in trace buffer region in the az option dialog box, specify the start and end addresses of the <> region where trace data will be stored. ? ? ? ? select trace level for <>, select the trace level of the az trace data to be collected. in this version, only ?task level? can be selected for the trace level. download to the debugger the load module that was created for the az4000. (5) az trace mode switching set <> to activate the az4000?s trace function. caution the load module must be downloaded (to load the required symbol information) before the az trace on setting can be made. (6) execute user program execute the user program on the debugger. as the user program is being executed, trace data for the az4000 starts accumulating in the trace buffer. (7) stop the user program stop the user program that is being executed on the debugger (if a breakpoint has been set, wait until the break occurs). collection of trace data for the az4000 stops when execution of the user program is stopped. (8) upload trace data when uploading, the trace data that has accumulated in the trace buffer is converted to az trace data.
chapter 4 operation methods user?s manual u15031ej1v0um 25 (9) check in analyze window open the analyze window and check the accumulated az trace data in each task?s state transition chart. ? ? ? ? how to display the state transition chart on the az4000 window?s menu bar, select [browse] [analyz e] [t ask level], or click the button on the tool bar. ? ? ? ? how to check the operation of objects click on any object name to display the ?simple search button,? then check the specified object?s operation. ? ? ? ? how to check task or interrupt state transitions use the pattern search dialog box that is opened from this window to search for a particular task switching point, interrupt source location, or service call location. the search results are displayed in the state transition chart. ? ? ? ? how to analyze the task or interrupt processing time use the pattern set dialog box that is opened from this window to search or analyze the previously set pattern (specified processing). the search results are displayed in the state transition chart. the distribution status based on the set pattern?s processing time is displayed in the pattern window. (10) check in cpu window use the cpu window to verify cpu usage during defined periods. ? ? ? ? how to display the cpu usage rate set the up and down cursors at start and end of the target period for displaying the cpu usage rate in the state transition chart. the displayed cpu usage rate is that for the period between the up and down cursors. after setting these cursors, open the cpu window. remark when the cpu window is active, the cpu usage rate is automatically updated when the up cursor or down cursor is moved to another location on the task-level state transition chart.
chapter 4 operation methods user?s manual u15031ej1v0um 26 (11) check in pattern window use the pattern window to verify the distribution status of a specified pattern?s execution time. ? ? ? ? how to display the pattern distribution [display method for any pattern] <1> in the analyze window, use the up and down cursors to define the period for the pattern distribution to be displayed. <2> in the analyze window, select [browse] [p attern] on the menu bar. <3> in the pattern set dialog box (which opens automatically), set the conditions for the pattern to be displayed, then click the ok button in the dialog box. [display method starting from cpu window] <1> in the analyze window, use the up and down cursors to define the period for the pattern distribution to be displayed. <2> in the cpu window, select any object in the list, then select [jump] [p attern] on the menu bar. the pattern distribution displayed via these methods are based on data for the specified object?s processing period (i.e., the mode between the start and end points for switching the specified objects). remark when the pattern window is active, the pattern distribution is automatically updated when the up cursor or down cursor is moved to another location on the task-level state transition chart. (12) check in trace view window more detailed verification of collected az trace data can be performed via the trace view window. ? ? ? ? how to display az trace data move the temporary up cursor to the target position in the state transition chart. if the temporary up cursor is not being displayed, it is at the trace data display?s start position. after setting the cursor, open the trace view window. remark when the trace view window is active, the az trace data display?s start position is automatically updated when the up cursor or down cursor is moved to another location on the task-level state transition chart. when necessary, repeat starting from step (6) to continue debugging. remark when using the soft trace form, resetting az trace on clears the trace buffer contents.
user?s manual u15031ej1v0um 27 chapter 5 window reference this chapter provides a detailed description of the az4000?s window and dialog box functions. 5.1 overview of az4000 windows and dialog boxes table 5-1 lists the az4000 windows and dialog boxes. table 5-1. list of az4000 windows and dialog boxes window/dialog box description of function page az4000 window used to perform az4000?s basic operations p.30 az option dialog box used to set trace form, cpu type, and trace level p.35 analyze window used to display state transition chart of collected az trace data p.37 object select dialog box used to select objects to display on the state transition chart or to specify changes of order p.49 pattern search dialog box used to set search conditions and perform searches in state transition charts p.52 cpu window used to display cpu usage during a specified time range in state transition charts p.56 pattern set dialog box used to set patterns to be displayed in pattern window p.61 pattern window used to display a histogram of distribution results, based on the execution time length, for the specified pattern in the state transition chart p.65 trace view window used to display a list of collected az trace data p.72 trace search dialog box used to set search conditions and perform searches in the trace view window p.77 file select dialog box used to load or save contents of various az4000 windows to a ?view file? p.80
chapter 5 window reference user?s manual u15031ej1v0um 28 5.2 relations among az4000 windows and dialog boxes figure 5-1 illustrates the relations among az4000 windows and dialog boxes. figure 5-1. relations among az4000 windows and dialog boxes az4000 window az option dialog box analyze window object select dialog box pattern search dialog box az option analyze window object select pattern search cpu window cpu window pattern set dialog box pattern set pattern window pattern window trace view window trace view window trace search dialog box trace search file select dialog box file open
chapter 5 window reference user?s manual u15031ej1v0um 29 5.3 descriptions of windows and dialog boxes windows and dialog boxes are described below using the following format. window/dialog box name [window/dialog box name] [general] description of window or dialog box?s functions and how it is opened [window] illustration of window or dialog box?s on-screen elements [functions] detailed description of window or dialog box?s functions [function buttons] description of operations set via window or dialog box?s buttons; describes how to select of target operation before clicking a button [menu bar] description of how functions can be specified by selecting items from pull-down menus under titles in the menu bar [caution] description of cautions concerning window or dialog box?s operations [errors] description of errors or warnings that can occur when window or dialog box?s operations are being performed
chapter 5 window reference user?s manual u15031ej1v0um 30 az4000 window [az4000] [general] this window opens automatically after the az4000 is started. it contains the az4000?s basic operations. start from this window when using the az4000. [window] figure 5-2. az4000 window (a) tool bar (b) status bar [functions] (1) description of areas (a) tool bar these buttons are clicked once to select and execute frequently used menu items. ? ? ? ? az option dialog box button click this button to open the az option dialog box. use this dialog box to specify various options for az trace operations. ? ? ? ? [az trace on/off] button this is a toggle button that turns the az4000?s trace function on and off. when ?az trace on? has been set, az trace data can be collected. cautions 1. the ?az trace on? setting cannot be made until downloading of the az4000?s soft trace form load module has been completed. 2. when using the soft trace form, after switching from ?az trace on? to ?az trace off?, setting ?az trace on? again clears the contents of trace memory.
chapter 5 window reference user?s manual u15031ej1v0um 31 ? ? ? ? [upload] button when this button is clicked, trace data obtained by executing a user program is read from trace memory and converted to az trace data. cautions 1. if the analyze window is open, clicking on this button updates the state transition chart to display the latest az trace data. 2. if there is no trace data in the trace memory, this button cannot be selected. ? ? ? ? display analyze window button click this button to open the task-level analyze window. this window can be used to check state transitions for individual tasks. (b) status bar the status bar is an area used to display various az4000 status indicators. ? ? ? ? connection status view area (first area from left) this area shows the status of the debugger connection. connected: connection with debugger is successful not connected: no connection with debugger ? ? ? ? load module status view area (second area from left) this area shows the status of the load module that has been loaded into the debugger. this area is not displayed unless the az4000 is connected with a debugger. rx+az none: both or either of the rtos and az monitors has not been downloaded. rx+az loaded: both the rtos and az monitors have been downloaded. ? ? ? ? load module execution status view area (third area from left) this area displays the execution status of a user program. this area is not displayed unless the az4000 is connected with a debugger. running: user program is being executed breaked: execution of user program has been stopped (at a breakpoint) ? ? ? ? trace mode status view area (fourth area from left) this area displays the az trace on/off status. this area is not displayed unless the az4000 is connected to a debugger and a load module has been downloaded (i.e., the required symbol data has been downloaded). az trace on: indicates that az trace is set to on az trace off: indicates that az trace is set to off
chapter 5 window reference user?s manual u15031ej1v0um 32 [menu bar] (1) [file] menu file option operation browse window help _ _ _ _ _ exit _ _ exit: this closes the az4000. (2) [option] menu file option operation browse window help _ _ _ _ _ _ tool bar _ status bar _ az option... _ tool bar: this selects whether or not to display a tool bar in this window. when selected, a tool bar is displayed. status bar: this selects whether or not to display a status view area in this window. when selected, a status view area is displayed. az option...: this opens the az option dialog box. use this dialog box to specify various options before performing an az trace. this has the same operation as the button on the tool bar.
chapter 5 window reference user?s manual u15031ej1v0um 33 (3) [operation] menu file option operation browse window help _ _ _ _ _ _ az trace on _ _ upload _ az trace off az trace on: this sets the az trace mode to ?az trace on?. when this has been selected, ?az trace on? is set and trace data is collected in trace memory as the user program is executed. az trace off: this sets the az trace mode to ?az trace off?. when this has been selected, ?az trace off? is set and trace data is not collected in trace memory when the user program is executed. upload: this uploads trace data. the trace data that was collected during execution of a user program is read from the trace buffer and is converted to az trace data. also, if the analyze window is open, selecting this menu item updates the state transition chart to display the latest az trace data. this has the same operation as the button on the tool bar. cautions 1. [az trace on] cannot be selected unless the az4000 has downloaded both the rtos and az monitor (soft trace form), as indicated by [rx+az loaded] in the status bar. 2. [az trace on] cannot be selected while a user program is being executed. 3. [upload] cannot be selected unless some trace data exists in the trace buffer. (4) [browse] menu file option operation browse window help _ _ _ _ _ _ analyze... _ task level... _ analyze?: this displays a sub menu that is used to open the analyze window. the following item is shown in the sub menu. task level?: this opens the task-level analyze window. this has the same operation as the button on the tool bar.
chapter 5 window reference user?s manual u15031ej1v0um 34 (5) [window] menu file option operation browse window help _ _ _ _ _ _ close all _ close all: this closes all of the az4000?s open windows and dialog boxes. (6) [help] menu file option operation browse window help _ _ _ _ _ _ this window _ help topics _ about... _ this window: this displays help topics about this window. help topics: this opens a dialog box for searching the az4000?s help contents (topics). about...: this opens a message box containing the az4000?s version information. [cautions] ? for ?az trace on? to be set, the az4000 must download both the rtos and az monitor (soft trace form), as indicated by [rx+az loaded] in the status bar. ? ?az trace on? cannot be set while a user program is being executed. ? when using the soft trace form, setting ?az trace on? clears the contents of trace buffer. ? the az4000 window does not change when trace data is uploaded. to view the trace data, open the analyze window after the trace data has been uploaded. [errors] ? when uploading, an error dialog box will be displayed if there is no trace data in the trace buffer. ? an error dialog box will be displayed if an error occurs when switching the az trace mode. ? an error dialog box will be displayed if an error occurs during ?upload? processing of trace data.
chapter 5 window reference user?s manual u15031ej1v0um 35 az option dialog box [az option] [general] this dialog box is used to specify the az4000?s trace form, the target real-time os, the trace buffer type, trace buffer region, and the trace level of the az trace data to be collected. this dialog box can be opened via any of the following operations. ? in the az4000 window, select [option] [az option] on the menu bar. ? in the az4000 window, click the button. ? press and hold the alt key while pressing the p and z keys in that order. [window] figure 5-3. az option dialog box (a) specify trace form (b) trace buffer type specification area (c) trace buffer region specification area (a) trace form specification area [functions] the areas in this dialog box are described below. (a) trace form specification area use this area to specify the az4000?s trace form. in this case, the soft form is specified.
chapter 5 window reference user?s manual u15031ej1v0um 36 (b) trace buffer type specification area when ?soft form? has been specified as the trace form, this area is used to specify the trace buffer type. select the option button for the environment to be used. ? ? ? ? fixed buffer this selects fixed buffer as the trace buffer type. when the trace buffer becomes full, collection of trace data ends. consequently, there is no guaranty that all trace data until the program is stopped will be collected. ? ? ? ? ring buffer this selects ring buffer as the trace buffer type. once the trace buffer becomes full, the trace data is overwritten starting from the oldest data. (c) trace buffer region specification area this area is used to specify the trace buffer region to be used with the soft trace form. enter the start address and end address in the text box. with the soft trace form, the trace data collected by the az4000 is first stored in the target memory. therefore, an unused area in the target memory must be specified as the trace buffer region. specify an area whose size ranges from 4 kb to 4 mb. [function buttons] target operation button function condition run az4000 using the specified trace form, trace buffer region, and trace level. ? closes this dialog box. ? displays help topics about this dialog box. [errors] ? if the address range specified in the trace buffer region specification area is incorrect, the error dialog box will be displayed once the ok button has been clicked.
chapter 5 window reference user?s manual u15031ej1v0um 37 analyze window [analyze window] [general] this window displays a task-level state transition chart of the az trace data collected during execution of a user program. this window and the windows that are displayed via this window can be used to search or analyze system timing errors and the entire system at the task level. this window can be opened via any of the following operations. ? in the az4000 window, select [browse] [analyz e] [t ask level] on the menu bar. ? in the az4000 window, click the button. ? press and hold the alt key while pressing the b , z , and t keys in that order. [window] figure 5-4. analyze window (a) (b) (c) (d) (e) (f) (g) (h) (i) (j) (k) (l) (m) (n) (o) (p) (a) up cursor (i) time display between cursors (b) down cursor (j) time display at temporary up cursor position (c) temporary up cursor (k) data width (d) temporary down cursor (l) ?jump to start? button (e) object (m) ?jump to end? button (f) analysis results (state transition) (n) scale change button (g) time display at up cursor position (o) simple search button (h) time display at down cursor position (p) time area
chapter 5 window reference user?s manual u15031ej1v0um 38 [functions] the following items are described below. (1) description of areas (2) display method for state transition chart (3) object names (4) how to read state transition charts (5) search methods for state transition charts (1) description of areas (a) up cursor this cursor is used to specify the range used when checking processing times in az trace data or when tabulating various types of data (it specifies the start position for the tabulation range). [operation method] press and hold the shift key while clicking the mouse on the state transition chart. (b) down cursor this cursor is used to specify the range used when checking processing times in az trace data or when tabulating various types of data (it specifies the end position for the tabulation range). [operation method] press and hold the ctrl key while clicking the mouse on the state transition chart. (c) temporary up cursor use this cursor to specify a position for starting a search via the ?simple search button?, a position for displaying results of a pattern search, or a start point when jump to the debugger window. when displaying search results from the pattern window, use this cursor to indicate the search pattern?s start position. when the up cursor is moved, the temporary up cursor is automatically moved to the same position. [operation method] click the left mouse button. (d) temporary down cursor when displaying search results from the pattern window, use this cursor to indicate the search pattern?s end position. when the down cursor is moved, the temporary down cursor is automatically moved to the same position. (e) object these buttons indicate objects in the az trace data. the button labels display rx4000-related objects (resources), such as tasks, event flags, and mailboxes. for further description of object names, see (3) object names below. clicking on an object name causes a simple search button to be displayed. click the object name again to remove the simple search button.
chapter 5 window reference user?s manual u15031ej1v0um 39 (f) analysis results (state transition) this area displays the user program analysis results. for further description of marks shown in the state transition chart, see (4) how to read state transition charts below. (g) time display at up cursor position relative time from the start of az trace data collection to the up cursor position is displayed here. the unit of measurement is milliseconds (msec). (h) time display at down cursor position relative time from the start of az trace data collection to the down cursor position is displayed here. the unit of measurement is milliseconds (msec). (i) time display between cursors the length of time between the up cursor and down cursor is displayed here. the unit of measurement is milliseconds (msec). (j) time display at temporary up cursor position relative time from the start of az trace data collection to the temporary up cursor position is displayed here. the unit of measurement is milliseconds (msec). (k) data width this displays the time span between the start and end of the az trace data. (l) ?jump to start? button this moves the up cursor and display screen to the start of the az trace data. (m) ?jump to end? button this moves the down cursor and display screen to the end of the az trace data. (n) scale change button this changes the scale of the displayed state transition chart. select the desired display scale from the pull-down menu or using the spin button. (o) simple search button this searches for the specified object. click on a listed object name, then click on the button that appears to search an object along the time axis (forward) of the state transition chart. the temporary up cursor is moved to the search position. clicking the button searches the specified object along the time axis?s backward direction, and moves the temporary up cursor to the search position. (p) time area this area displays the time unit for the event intervals displayed in the state transition chart. the unit is displayed at the right edge of this area. in figure 5-4, the unit is milliseconds (msec).
chapter 5 window reference user?s manual u15031ej1v0um 40 (2) display method for state transition chart perform the operations described below to display a state transition chart of collected az trace data in this window. [operation method] <1> collect az trace data. <2> open this window (select [browse] [analyz e] [t ask level] on the az4000 window?s menu bar, or click the button on the tool bar). data in this window is not automatically updated. consequently, when re-executing a user program, in order to have the newly collected trace data displayed in a state transition chart, select the upload function (select [operation] [u pload] on the az4000 window?s menu bar or click the button). (3) object names buttons that indicate object names are displayed as shown below. ? ? ? ? rx4000 objects idle tasks are displayed as follows. idle task resource types and id numbers are displayed as follows. task (nnnn: task id no. {hexadecimal}) event flag (nnnn: event flag id no. {hexadecimal}) semaphore (nnnn: semaphore id no. {hexadecimal}) mailbox (nnnn: mailbox id no. {hexadecimal}) variable length memory pool (nnnn: memory pool id no. {hexadecimal}) fixed length memory pool (nnnn: memory pool id no. {hexadecimal}) data queue (nnnn: data queue id no. {hexadecimal}) mutex (nnnn: mutex id no. {hexadecimal}) ? ? ? ? interrupts the interrupt handler name received from the debugger is displayed. however, in cases where the handler name cannot be received from the debugger, the following default names are displayed. maskable interrupt (n: interrupt level {0 to 7}) non-maskable interrupt
chapter 5 window reference user?s manual u15031ej1v0um 41 ? ? ? ? exceptions the exception name is displayed. tlb modification exception tlb mismatch exception (load or fetch) tlb mismatch exception (store) address error exception (load or instruction fetch) address error exception (store) bus error exception (instruction fetch) bus error exception (data load or store) breakpoint exception reserved instruction exception cpu disable exception operation overflow exception trap exception floating point operation exception watch exception ? ? ? ? other objects objects that are not displayed in the object select dialog box. (4) how to read state transition charts state transition charts have the following three view modes, which can be specified by selecting [view] [view mode] on the analyze window?s menu bar. (a) delete mode (b) standard mode (c) detail mode (default) remark to view or hide grid lines, select [view] [g rid mode] on this window?s menu bar.
chapter 5 window reference user?s manual u15031ej1v0um 42 (a) delete mode only horizontal lines are used to indicate where cpu operations occur. ?delete mode? is useful when analyzing a wide range of az trace data. figure 5-5. analyze window (delete mode) remark dotted lines indicate processing by the user program and bold lines indicate service call processing. (b) standard mode lines are used to link cpu processing segments. figure 5-6. analyze window (standard mode) remark dotted lines indicate processing by the user program and bold lines indicate service call processing. (c) detail mode (default) in addition to the traces of cpu processing, this mode displays marks that indicate whether service calls of the rx4000 are for memory pool management or the communication control function (see table 5-2 ). detail mode is useful when analyzing access to specific objects.
chapter 5 window reference user?s manual u15031ej1v0um 43 figure 5-7. analyze window (detail mode) remark dotted lines indicate processing by the user program and bold lines indicate service call processing. (a) tsk(1001) has issued a wai_flg service call in response to event flag flg(2000). (b) tsk(1001) is in wait mode, so processing is passed to tsk(1002). (c) tsk(1002) has issued a set_flg service call in response to event flag flg(2000). (d) the wait condition for the wai_flg service call issued by tsk(1001) has been met and wait mode has been canceled. (e) tsk(1001) has issued a del_mbx service call for mailbox mbx(4000). (f) tsk(1001) has issued a get_mpl service call in response to memory pool mpl(5000). (g) an error has been returned by the service call described in (f) above. (h) tsk(1002) has issued a sig_sem service call in response to semaphore sem(3000). table 5-2. list of marks used in state transition charts (when used in rx4000) mark access target issued service calls meaning event flag wai_flg / pol_flg / ipol_flg / twai_flg semaphore wai_sem / pol_sem / ipol_sem / twai_sem mailbox rcv_mbx / prcv_mbx / iprcv_mbx / trcv_mbx variable length memory pool get_mpl / pget_mpl / ipget_mpl / tget_mpl fixed length memory pool get_mpf / pget_mpf / ipget_mpf / tget_mpf data queue rcv_dtq / prcv_dtq / iprcv_dtq / trcv_dtq / snd_dtq / tsnd_dtq mutex loc_mtx / ploc_mtx / tloc_mtx event flag set_flg / iset_flg / clr_flg / iclr_flg semaphore sig_sem / isig_sem mailbox snd_mbx / isnd_mbx variable length memory pool rel_mpl / irel_mpl fixed length memory pool rel_mpf / irel_mpf data queue snd_dtq / psnd_dtq / ipsnd_dtq / tsnd_dtq / fsnd_dtq / ifsnd_dtq mutex unl_mtx event flag del_flg semaphore del_sem mailbox del_mbx variable length memory pool del_mpl fixed length memory pool del_mpf data queue del_dtq mutex del_mtx indicates that one of the service calls shown at left was issued for the corresponding access target and a value was returned. indicates an error of an issued service call.
chapter 5 window reference user?s manual u15031ej1v0um 44 (5) search methods for state transition charts the following methods can be used to search collected az trace data in this window. (a) search processing of specific objects (b) search via pattern search dialog box (c) search via pattern window (a) search processing of specific objects use the ?simple search button? to search for processing of a specified object. [operation method] <1> if a temporary up cursor is displayed in the state transition chart, move the temporary up cursor to the search start position. if it is not displayed, move the up cursor to the search start position. <2> click the button bearing the name of the object whose operation is to be checked. the simple search buttons will appear immediately to the right of the object name and also in the state transition chart. <3> click a simple search button. : searches for the specified object?s processing along the forward direction of the time axis and moves the temporary up cursor to the search position. : searches for the specified object?s processing along the backward direction of the time axis and moves the temporary up cursor to the search position. if the searched point is not in the currently displayed state transition chart, the graph is shifted so that the point is at the ?0? position in the scale. the simple search button can be removed from the screen by clicking the button bearing the object name again. (b) search via pattern search dialog box use the pattern search dialog box to search previously set patterns in state transition charts. the search results are indicated by the temporary up cursor in the state transition chart. when using the pattern search dialog box, the transition status of tasks and interrupts can be searched. for details, see the description of the pattern search dialog box. (c) search via pattern window a pattern that has been set via the pattern set dialog box can be searched in the state transition chart displayed in the pattern window. the search results are indicated by the temporary up cursor in the state transition chart. when using the pattern window, the transition status of tasks and interrupts can be searched. for details, see the description of the pattern window.
chapter 5 window reference user?s manual u15031ej1v0um 45 [function buttons] target operation button function ? this opens the file select dialog box. previously saved trace data from the analyze window is read and displayed in the state transition chart. ? this opens the file select dialog box. currently displayed trace data (displayed in the analyze window) is saved to a file. ? this turns grid mode on and off for the state transition chart. ? this sets delete mode for the state transition chart. ? this sets standard mode for the state transition chart. ? this sets detail mode for the state transition chart. ? this opens the object select dialog box. ? this opens the pattern search dialog box. ? this opens the cpu window to display the cpu usage rate for the period between the up and down cursors. if a previously active cpu window is being displayed, the contents of that window are updated at this point. ? this opens the pattern set dialog box. once a pattern condition has been set, a pattern window displaying the period between the up and down cursors is opened. if a previously active pattern window is being displayed, the contents of that window are updated at this point. ? this opens the trace view window from the position specified by the temporary up cursor. if a previously active trace view window is being displayed, the contents of that window are updated at this point. ? this opens the source text window from the position specified by the temporary up cursor. if a previously active source text window is being displayed, the contents of that window are updated at this point. ? this opens the disassemble window from the position specified by the temporary up cursor. if a previously active disassemble window is being displayed, the contents of that window are updated at this point. ? this opens the debugger?s memory list from the position specified by the temporary up cursor. if a memory list is being displayed in a previously active window, the contents of that window are updated at this point.
chapter 5 window reference user?s manual u15031ej1v0um 46 [menu bar] (1) [file] menu file view operation browse jump help _ _ _ _ _ _ open... _ save _ save as... _ print _ close _ open?: this opens the file select dialog box. a previously saved file displayed in this window is loaded. the default file name extension for files displayed in this window is ?.az?. save: this function is not supported in this version. save as?: this opens the file select dialog box. currently displayed data in a state transition chart is updated or renamed and saved to a view file in this window. the default file name extension for files displayed in this window is ?.az?. print: this function is not supported in this version. close: this closes this window. caution if a state transition chart is not being displayed, the [save as...] menu item cannot be selected. (2) [view] menu file view operation browse jump help _ _ _ _ _ _ grid mode _ view mode _ small _ grid _ delete mode(o) _ ungrid _ standard mode _ detail mode _ large(t) search _ select object _ _ grid mode: this displays a sub menu that is used to specify view/hide for grid lines on the state transition chart. the following sub menu is displayed. grid: this views (displays) grid lines. ungrid: this hides grid lines. view mode: this displays a sub menu for specifying the state transition chart?s display mode. the following sub menu is displayed. delete mode(o): this hides vertical lines in the state transition chart. this has the same operation as clicking the button.
chapter 5 window reference user?s manual u15031ej1v0um 47 standard mode: this displays the cpu?s state transitions only. this has the same operation as clicking the button. detail mode: this displays the service call access status for the rx4000 real-time os (default mode). this has the same operation as clicking the button. small: this minimizes the display scale of the state transition chart. this has the same operation as the scale change button (see figure 5-4 ). large(t): this maximizes the display scale of the state transition chart. this has the same operation as the scale change button (see figure 5-4 ). search: this opens this window?s trace-level pattern search dialog box. this has the same operation as clicking the button. select object: this opens this window?s trace-level object select dialog box. this has the same operation as clicking the button. (3) [operation] menu file view operation browse jump help _ _ _ _ _ _ active _ hold _ active: this switches this window from hold mode to active mode. hold: this switches this window from active mode to hold mode. (4) [browse] menu file view operation browse jump help _ _ _ _ _ _ cpu... _ pattern... _ trace view... _ cpu?: this opens this window?s trace-level cpu window. if a previously active cpu window is being displayed, the contents of that window are updated at this point. this has the same operation as clicking the button. pattern?: this opens this window?s trace-level pattern set dialog box. once a pattern is set via this dialog box, the pattern window is opened. if a previously active pattern window is being displayed, the contents of that window are updated at this point. this has the same operation as clicking the button. trace view?: this opens this window?s trace-level trace view window. if a previously active trace view window is being displayed, the contents of that window are updated at this point. this has the same operation as clicking the button.
chapter 5 window reference user?s manual u15031ej1v0um 48 (5) [jump] menu file view operation browse jump help _ _ _ _ _ _ source text... _ assemble... _ memory... _ source text?: this displays the debugger?s source text at the position specified using the temporary up cursor. if source text is already being displayed in an active window, the contents of that window are updated at this point. this has the same operation as clicking the button. assemble?: this displays the debugger?s disassembled text at the position specified using the temporary up cursor. if disassembled text is already being displayed in an active window, the contents of that window are updated at this point. this has the same operation as clicking the button. memory?: this displays the debugger?s memory list at the position specified using the temporary up cursor. if a memory list is already being displayed in an active window, the contents of that window are updated at this point. this has the same operation as clicking the button. caution if there is no address information for the position specified using the temporary up cursor, the items in the [jump] menu cannot be selected. (6) [help] menu file view operation browse jump help _ _ _ _ _ _ this window _ help topics _ this window: this displays help topics about this window. help topics: this opens a dialog box for searching the az4000?s help contents (topics). [cautions] ? data in this window is not automatically updated. consequently, when re-executing an application program, in order to have the newly collected trace data displayed in a state transition chart, select the upload function (select [operation] [u pload] in the az4000 window). ? if there is no address information in the trace data for the position specified using the temporary up cursor, the items in the [jump] menu cannot be selected. [errors] ? an error dialog box will appear if an active analyze window already exists when attempting to change a window from hold mode to active mode. ? an error dialog box will appear if uploaded trace data does not include any task-level trace data.
chapter 5 window reference user?s manual u15031ej1v0um 49 object select dialog box [object select] [general] this dialog box is used to select or change the order of objects displayed in a state transition chart in a task-level analyze window. this dialog box can be opened via any of the following operations. ? in the analyze window, select [view] [select o bject] on the menu bar. ? in the analyze window, click the button. ? in the analyze window, press and hold the alt key while pressing the v and o keys in that order. [window] figure 5-8. object select dialog box (a) hide object area (b) show object area (c) sort mode areas [functions] the following items are described below. (1) description of areas (2) limitation of displayed objects (3) addition of displayed objects (4) changing order of displayed objects
chapter 5 window reference user?s manual u15031ej1v0um 50 (1) description of areas (a) hide object area this area displays a list of objects contained in the az trace data that are not displayed in the state transition chart. (b) show object area this area displays a list of objects that are displayed in the state transition chart. the default setting is to list all object names included in the az trace data. the objects are listed in this area in the order that they appear in the state transition chart. (c) sort mode area this area is used to select the order for listing objects in the <> and <>. (2) limitation of displayed objects the objects displayed in the state transition chart can be limited (curtailed) via the following operations. <1> select objects from the show object area that do not need to be shown in the state transition chart. <2> click the < click the ok button to update the state transition chart with these changes. remark hidden objects are displayed collectively on the state transition chart as the object . (3) addition of displayed objects the objects displayed in the state transition chart can be added via the following operations. <1> in the hide object area, select object(s) to be shown in the state transition chart. <2> click the show>> button. the selected object(s) will be moved to the show object area. if a move destination has been specified, the object(s) will be inserted immediately before that position. if a move destination was not specified, the object(s) will be inserted at the end of the list. <3> click the ok button to update the state transition chart with these changes. (4) changing order of displayed objects the order in which objects are listed in the hide object area and show object area can be set based on interrupts, tasks, idle status, event flags, semaphores, mailboxes, and memory pools. to change the listing order, select a sort mode from the sort mode area?s drop-down list.
chapter 5 window reference user?s manual u15031ej1v0um 51 the listing order of show object area will be reflected in the state transition chart. the selectable sort modes are listed below. sort mode description none unsorted mode (default) appear sorts based on order of appearance in az trace data name sorts based on names in each object type id sorts based on ids in each object type [function buttons] target operation button function object this moves the object(s) selected in the show object area to the hide object area. if a move destination has been specified, the object(s) will be inserted immediately before that position. if a move destination was not specified, the object(s) will be inserted at the end of the list. object this moves the selected object(s) in the hide object area to the show object area. if a move destination has been specified, the object(s) will be inserted immediately before that position. if a move destination was not specified, the object(s) will be inserted at the end of the list. ? this displays objects in the state transition chart according to the list of objects in the show object area. ? this closes this dialog box. ? this displays help topics about this dialog box.
chapter 5 window reference user?s manual u15031ej1v0um 52 pattern search dialog box [pattern search] [general] this dialog box is used to set search conditions when searching for ?certain phenomena? in a state transition chart. the ?certain phenomena? might be a specified task or interrupt, a point for switching to a specified task or interrupt, or a condition for a specified service call. this dialog box can be opened via any of the following operations. ? in the analyze window, select [view] [s earch] on the menu bar. ? in the analyze window, click the button. ? in the analyze window, press and hold the alt key while pressing the v and s keys in that order. [window] figure 5-9. pattern search dialog box (when task switch is selected) (a) search mode area (b) search condition setting area
chapter 5 window reference user?s manual u15031ej1v0um 53 [functions] the following items are described below. (1) description of areas (2) search methods (1) description of areas (a) search mode area this area is used to select the search mode. a search mode indicates the type of phenomena to be searched in a state transition chart. the available search modes are listed below. table 5-3. pattern search modes search mode description task switch searches task switching locations service call(call) searches locations of called service calls service call(return) searches locations of returned service calls service call(error) searches locations of service calls with returned errors (b) search condition setting area this area is used to set search conditions for the search mode specified in the <>. the contents displayed in this area differ according to the specified search mode. search conditions set for the items listed below can be directly input from the keyboard or can be selected from a drop-down list. the available conditions are listed below. table 5-4. pattern search conditions (when search mode has been set to ?task switch?) item description of condition task (upper) specifies the task name or interrupt name prior to switching. specify ?any? if any task or interrupt name can be used. task (lower) specifies the task name or interrupt name after switching. specify ?any? if any task or interrupt name can be used. interrupt specifies whether or not to search for switches to or from interrupts. interrupt transitions are searched when ?valid? is selected and they are not searched when ?invalid? is selected.
chapter 5 window reference user?s manual u15031ej1v0um 54 remark the difference in search positions for interrupt items according to the valid/invalid specification are described below (when switching search condition from [any] to [tsk(1002)]). (a) (c) interrupt (b) tsk[1001] tsk[1002] valid invalid [(a) in above diagram] valid search occurs when switching from [task1001] to [tsk1002] invalid search occurs when switching from [task1001] to [tsk1002] [(b) in above diagram] valid search occurs when switching from [interrupt] to [tsk1002] invalid switching from interrupt servicing is ignored, but search occurs when switching from [tsk1001] to [tsk1002] [(c) in above diagram] valid search occurs when switching from [interrupt] to [tsk1002] invalid switching from interrupt servicing is ignored, and is regarded as switching from [tsk1002] to [tsk1002], so search does not occur since there was no switching. table 5-5. pattern search conditions (when ?service call(call, return, error)? has been specified as search mode) item description of condition task this specifies the task name or interrupt name for which a service call is issued. specify ?any? if any task or interrupt name can be used. service call this specifies the service call name. specify ?any? if any service call name can be used. object this specifies the service call?s target object. specify ?any? if any object can be used.
chapter 5 window reference user?s manual u15031ej1v0um 55 (2) search methods [operation method] <1> specify the position to be used as the search start position. if the temporary up cursor is shown in the state transition chart, it is moved to the search start position. if the temporary up cursor is not being displayed, the up cursor is moved to the search start position. <2> select a search mode in the search mode area of this dialog box. <3> in the search condition setting area, directly enter a search condition for each item via the keyboard or select search conditions from the drop-down list. <4> click the button or the button. searches are performed as described below. ? ? ? ? if the button has been clicked: the search is performed along the forward direction of the time axis, starting from the specified start position, and the temporary up cursor is moved to the search results position. ? ? ? ? if the button has been clicked: the search is performed along the backward direction of the time axis, starting from the specified start position, and the temporary up cursor is moved to the search results position. [function buttons] target operation button function search condition searches the state transition chart for locations that match the specified search condition, moving along the forward direction of the time axis starting from the position indicated by the up cursor or temporary up cursor. the temporary up cursor is moved to the search results position in the state transition chart. search condition searches the state transition chart for locations that match the specified search condition, moving along the backward direction of the time axis starting from the position indicated by the up cursor or temporary up cursor. the temporary up cursor is moved to the search results position in the state transition chart. ? closes this dialog box. ? displays help topics about this dialog box. [errors] a warning alarm is sounded if no phenomena that match the specified search condition exist in the az trace data.
chapter 5 window reference user?s manual u15031ej1v0um 56 cpu window [cpu window] [general] this window displays cpu usage information for the time period between the up cursor and down cursor on the state transition chart. use this window to check the execution time of a specified task or interrupt or to evaluate the performance of target data based on idle time or interrupt time information. this window can be opened via any of the following operations. ? in the analyze window, select [browse] [c pu] on the menu bar. ? in the analyze window, click the button. ? in the analyze window, press and hold the alt key while pressing the b and c keys in that order. [window] figure 5-10. cpu window (f) (a) (d) (b) (c) (e) (g) (h) (a) time display at up cursor position (e) object?s total execution time (b) time display at down cursor position (f) graph display of cpu usage (c) time display between up and down cursors (g) percentage display of task execution time (d) object name (h) percentage display of system execution time
chapter 5 window reference user?s manual u15031ej1v0um 57 [functions] the following items are described below. (1) description of areas (2) cpu usage display method (3) jump function from cpu window (1) description of areas (a) time display at up cursor position this displays the time when collection of cpu usage data began. relative time from the start of az trace data collection to the up cursor position is displayed here. the unit of measurement is milliseconds (msec). (b) time display at down cursor position this displays the time when collection of cpu usage data ended. relative time from the start of az trace data collection to the down cursor position is displayed here. the unit of measurement is milliseconds (msec). (c) time display between up and down cursors this displays the length of time used to collect cpu usage data. the length of time between the up cursor and down cursor is displayed here. the unit of measurement is milliseconds (msec). (d) object name this is a list of object names that existed within the collected time. (e) object?s total execution time the total task execution time for task or interrupts within the data collection time is displayed along with the total system processing time. (f) graph display of cpu usage a bar graph indicates the cpu usage for objects existing within the data collection time. the bars have two sections, one indicating the task execution share and the other indicating the system processing share. (g) percentage display of task execution time the share of task execution time within the data collection time is shown as a percentage. (h) percentage display of system execution time the share of system execution time within the data collection time is shown as a percentage.
chapter 5 window reference user?s manual u15031ej1v0um 58 (2) cpu usage display method the cpu usage data is collected during the time period between the up and down cursors in the state transition chart. [operation method] <1> set the up cursor and down cursor to the positions in the state transition chart that mark the start and end of the period for cpu usage data collection. <2> select [browse] [c pu] on the analyze window?s menu bar to open this window. remark when the cpu window is open, the cpu usage data is automatically updated when the up cursor or down cursor is moved to another location on the state transition chart. (3) jump function from cpu window after using the mouse to specify an object in the list, select an item from the [jump] menu to open the following window. ? ? ? ? pattern window this window displays pattern distribution during the specified object?s processing time. the displayed pattern is set automatically as described below. start point: task switch from [any] to [specified task]; [valid] end point: task switch from [specified task] to [any]; [valid] [function buttons] target operation button function ? this opens the file select dialog box. the previously saved cpu window?s display data is read and displayed. ? this opens the file select dialog box. the data shown in the current cpu window is saved to a file. ? this sorts the contents of the graph display according to order of appearance of trace data. ? this sorts the contents of the graph display in alphabetical order of the object names. ? this sorts the contents of the graph display according to length of execution time. ? this sorts the contents of the graph display according to order of appearance in the analyze window. object this displays the pattern window corresponding to the specified object. if an active pattern window is already being displayed, the contents of that window are updated at this point.
chapter 5 window reference user?s manual u15031ej1v0um 59 [menu bar] (1) [file] menu file view operation jump help _ _ _ _ _ open... _ save as... _ print _ close _ open?: this opens the file select dialog box. a previously saved file displayed in this window is loaded. the default file name extension for files displayed in this window is ?.azc?. save as?: this opens the file select dialog box. currently displayed data is updated or renamed and saved to a view file in this window. the default file name extension for files displayed in this window is ?.azc?. print: this function is not supported in this version. close: this closes this window. caution if a cpu usage graph is not being displayed, the [save as...] menu item cannot be selected. (2) [view] menu file view operation jump help _ _ _ _ _ sort appear _ sort name _ sort time _ sort restore _ sort appear: this sorts the contents of the graph display according to order of appearance of az trace data. this has the same operation as clicking the button. sort name: this sorts the contents of the graph display according to the alphabetical order of object names. this has the same operation as clicking the button. sort time: this sorts the contents of the graph display according to length of execution time (default setting). this has the same operation as clicking the button. sort restore: this sorts the contents of the graph display according to the order of appearance in the state transition chart. this has the same operation as clicking the button.
chapter 5 window reference user?s manual u15031ej1v0um 60 (3) [operation] menu file view operation jump help _ _ _ _ _ active _ hold _ active: this switches this window from hold mode to active mode. hold: this switches this window from active mode to hold mode. (4) [jump] menu file view operation jump help _ _ _ _ _ pattern... _ pattern?: this window opens the pattern window corresponding to the specified object. if an active pattern window is already being displayed, its contents are automatically updated at this point. the displayed pattern is set automatically as described below. start point: task switch from [any] to [specified object]; [valid] end point: task switch from [specified object] to [any]; [valid] this has the same operation as clicking the button. (5) [help] menu file view operation jump help _ _ _ _ _ this window _ h elp topics _ this window: this displays help topics about this window. help topics: this opens a dialog box for searching the az4000?s help contents (topics). [caution] ? this window is closed when the task-level analyze window is closed. [errors] ? an error dialog box will appear if an active cpu window already exists when attempting to change a window from hold mode to active mode.
chapter 5 window reference user?s manual u15031ej1v0um 61 pattern set dialog box [pattern set] [general] this dialog box is used to set a pattern mode and pattern conditions as pattern settings to be displayed in the pattern window. a pattern consists of events that occur between the time a certain event (task switch, interrupt, service call condition, etc.) occurs and the time when that event ends, or that occur during the processing period (cpu execution period) until another event occurs. this dialog box can be opened via any of the following operations. ? in the analyze window, select [browse] [p attern] on the menu bar. ? in the analyze window, click the button. ? in the analyze window, press and hold the alt key while pressing the b and p keys in that order. ? in the pattern window, select [option] [pattern s et] on the menu bar. ? in the pattern window, press and hold the alt key while pressing the p and s keys in that order. ? in the pattern window, click the button. [window] figure 5-11. pattern set dialog box (when task switch is selected) (a) pattern search mode area (b) search condition setting area caution the items displayed in the <> differ according to what has been selected in the pattern search mode area.
chapter 5 window reference user?s manual u15031ej1v0um 62 [functions] the following items are described below. (1) description of areas (2) pattern search/tabulation methods (1) description of areas (a) pattern search mode area this area is used to select the pattern mode. a pattern mode indicates the type of event to be tabulated between the start (from:) and end (to:) points in the pattern window. the available pattern modes are listed below. table 5-6. pattern modes pattern mode description task switch uses task switching locations as start and end points service call(call) uses locations of called service calls as start and end points service call(return) uses locations of returned service calls as start and end points service call(error) uses locations of service calls with returned errors as start and end points (b) search condition setting area this area is used to set search conditions for the pattern mode specified in the pattern search mode area (a). the contents displayed in this area differ according to the specified pattern mode. search conditions set for the items listed below can be directly input from the keyboard or can be selected from a drop-down list. the available conditions are listed below. table 5-7. pattern search conditions (when search mode has been set to ?task switch?) item description of condition task (upper) specifies the task name or interrupt name prior to switching. specify ?any? if any task or interrupt name can be used. task (lower) specifies the task name or interrupt name after switching. specify ?any? if any task or interrupt name can be used. interrupt specifies whether or not to search for switches to or from interrupts. interrupt transitions are searched when ?valid? is selected and they are not searched when ?invalid? is selected.
chapter 5 window reference user?s manual u15031ej1v0um 63 remark the difference in search positions for interrupt items according to the valid/invalid specification are described below. (a) (c) interrupt (b) tsk1001 tsk1002 valid invalid tsk1003 search condition from: [any] [tsk1002] to: [tsk1002] [any] when ?valid? has been specified: events during (a) and (b) are detected as a pattern since an interrupt was detected as a target for switching. when ?invalid? has been specified: events during (c) are detected as a pattern since no interrupt was detected as a target for switching. in this case, the time of the interrupt?s appearance is used to calculate the pattern?s start and end times and the interrupt time is included in the pattern?s execution time. table 5-8. pattern search conditions (when ?service call(call, return, error)? has been specified as search mode) item description of condition task this specifies the task name or interrupt name for which a service call is issued. specify ?any? if any task or interrupt name can be used. service call this specifies the service call name. specify ?any? if any service call name can be used. object this specifies the service call?s target object. specify ?any? if any object can be used.
chapter 5 window reference user?s manual u15031ej1v0um 64 remark the following are some typical pattern settings. [analysis of interrupt servicing time] from: task switch [any] [intp10];[valid] to: task switch [intp10] [any];[valid] [analysis of service call processing time] (analysis of processing time between wai_sem service call issued by tsk(1001) and acquisition of resources from sem(1000)) from: service call(call) [tsk(1001)] [wai_sem];[sem(1000)] to: service call(return) [tsk(1001)] [wai_sem];[sem(1000)] [analysis of processing time between issuance of service call and wake of other task] (analysis of processing time between slp_tsk issued by tsk(1001) and passing of processing to tsk(1002)) from: service call(call) [tsk(1001)] [slp_tsk] to: task switch [any] [tsk(1002)] [analysis of error return interval] (analysis of interval between locations where error is returned for tsk(1001)) from: service call(error) [tsk(1001)] [any];[any] to: service call(error) [tsk(1001)] [any];[any] (2) pattern search/tabulation methods perform the following operations to search and tabulate a previously set pattern in a specified area and to open the pattern window. [operation method] <1> on the state transition chart, set the up cursor and down cursor to define the pattern distribution area to be tabulated. this dialog box will then appear. <2> in the ?from:? area, select the pattern mode for the start point of the pattern to be tabulated. <3> in the ?to:? area, select the pattern mode for the end point of the pattern to be tabulated. <4> in the <>, enter pattern search conditions for the ?from:? and ?to:? items, either by directly inputting them via the keyboard or by selecting them from a drop-down list. <5> click the ok button. [function buttons] target operation button function pattern search condition searches and tabulates the previously set pattern in the state transition chart for the time range between the up cursor and down cursor, then opens the pattern window. ? closes this dialog box. ? displays help topics about this dialog box. [errors] ? an error dialog box appears if the az trace data does not include any patterns that meet the previously set search conditions.
chapter 5 window reference user?s manual u15031ej1v0um 65 pattern window [pattern window] [general] in this window, a pattern that has been set via the pattern set dialog box as within the time range between the up and down cursors on the state transition chart is searched, and the appearance of the pattern is tabulated based on the execution time period and is displayed on a histogram. a pattern consists of events that occur between the time a certain event (task switch, interrupt, service call condition, etc.) occurs and the time when that event ends, or that occur during the processing period (cpu execution period) until another event occurs. this window can be used to obtain worst-case values, average values, or other values for the execution time of processing in any user program. this window can be opened via any of the following operations. ? in the analyze window, select [browse] [p attern] on the menu bar, then set conditions via the pattern set dialog box. ? in the analyze window, click the button, then set conditions via the pattern set dialog box. ? in the analyze window, press and hold the alt key while pressing the b and p keys in that order, then set conditions via the pattern set dialog box. ? in the cpu window, select [jump] [p attern] on the menu bar. ? in the cpu window, click the button.
chapter 5 window reference user?s manual u15031ej1v0um 66 [window] figure 5-12. pattern window (b) (c) (h) (a) (e) (g) (d) (f) (a) time display at up cursor position (e) average value display (b) time display at down cursor position (f) histogram divisor display (c) time display between up and down cursors (g) processing time view area (d) pattern condition display (h) pattern distribution view area [functions] the following items are described below. (1) description of areas (2) pattern display method (3) how to read patterns (4) searching from the pattern window (1) description of areas (a) time display at up cursor position this displays the time when tabulation of pattern distribution began. relative time from the start of az trace data collection to the up cursor position is displayed in the state transition chart. the unit of measurement is milliseconds (msec). (b) time display at down cursor position this displays the time when tabulation of pattern distribution ended. relative time from the start of az trace data collection to the down cursor position is displayed in the state transition chart. the unit of measurement is milliseconds (msec).
chapter 5 window reference user?s manual u15031ej1v0um 67 (c) time display between up and down cursors this displays the length of time used to tabulate pattern data. the length of time between the up cursor and down cursor is displayed here. the unit of measurement is milliseconds (msec). (d) pattern condition display this displays the pattern conditions that were set via the pattern set dialog box. (e) average value display this displays an average value of the previously set pattern?s execution time. the unit of measurement is milliseconds (msec). (f) histogram divisor display this displays the histogram divisor. the divisor value can be set in a range from 1 to 100 by clicking the up and down buttons to the right of this display. (g) processing time view area this displays the length of time required for processing of the previously set pattern. (h) pattern distribution view area this displays a histogram of the tabulation results for the previously set pattern?s processing time in the period between the up and down cursors on the state transition chart. (2) pattern display method patterns are tabulated within the period between the up and down cursors on the state transition chart. [operation methods] <1> in the state transition chart, set the up cursor and down cursor to demarcate the section in which pattern data is to be tabulated. <2> in the analyze window, select [browse] [p attern] on the menu bar. <3> in the pattern set dialog box (which opens automatically), set the conditions for the pattern to be tabulated and displayed, then click the ok button. remark if the up cursor or down cursor is moved in the state transition chart while the pattern window is open, the pattern display is automatically updated.
chapter 5 window reference user?s manual u15031ej1v0um 68 (3) how to read patterns figure 5-13 shows an example of a pattern used for analysis of tsk[0002]?s processing time. figure 5-13. how to read patterns this indicates that tsk[0002]'s average processing time is 0.059 ms. this indicates tsk[0002]'s execution time period, obtained by dividing the maximum and minimum times by the specified divisor. this indicates that processing of tsk[0002] occurred at 20 locations within the time period of 0.012651 ms to 0.096561 ms. (4) searching from the pattern window the ?function buttons? in the pattern window are used to search the maximum and minimum execution time (or ascending order of time periods) in the processing time for the previously set pattern. the search results are displayed in a state transition chart in this window. the temporary up cursor is moved to the start position of the searched pattern and the temporary down cursor is moved to the end position. [function buttons] target operation button function ? this opens the file select dialog box. the previously saved pattern window?s display data is read and displayed. ? this opens the file select dialog box. the data shown in the current pattern window is saved to a file. ? this opens the pattern set dialog box. ? this displays the location of the minimum execution time period in the searched pattern in the analyze window. ? this searches for the location with the next-shortest execution time period compared to the currently searched location. ? this searches for the location with the next-longest execution time period compared to the currently searched location. ? this displays the location of the maximum execution time period in the searched pattern in the analyze window.
chapter 5 window reference user?s manual u15031ej1v0um 69 [menu bar] (1) [file] menu file view operation option help _ _ _ _ _ open... _ save as... _ print _ close _ open?: this opens the file select dialog box. a previously saved file displayed in this window is loaded. the default file name extension for files displayed in this window is ?.azp?. save as?: this opens the file select dialog box. currently displayed data in this window is updated or renamed and saved to a view file in this window. the default file name extension for files displayed in this window is ?.azp?. print: this function is not supported in this version. close: this closes this window. (2) [view] menu file view operation option help _ _ _ _ _ divide(+)(i) _ divide( ? )(d) _ divide(+)(i): this increments (by one) the histogram?s divisor. divide( ? )(d): this decrements (by one) the histogram?s divisor. (3) [option] menu file view operation option help _ _ _ _ _ pattern set... _ pattern set?: this opens this window?s trace-level pattern set dialog box.
chapter 5 window reference user?s manual u15031ej1v0um 70 (4) [operation] menu file view operation option help _ _ _ _ _ active _ hold _ search (min) _ search (max) _ search (fore) _ search (back) _ active: this switches this window from hold mode to active mode. hold: this switches this window from active mode to hold mode. search (min): the location of the shortest execution time in the tabulated pattern is displayed in the state transition chart. the temporary up cursor is moved to the start position of the searched pattern and the temporary down cursor is moved to the end position. this has the same operation as clicking the button. search (max): the location of the longest execution time in the tabulated pattern is displayed in the state transition chart. the temporary up cursor is moved to the start position of the searched pattern and the temporary down cursor is moved to the end position. this has the same operation as clicking the button. search (fore): after [search (min )] has been selected or the button has been clicked, the location with the next-shortest execution time period compared to the currently searched location is searched. the temporary up cursor is moved to the start position of the searched pattern and the temporary down cursor is moved to the end position. this has the same operation as clicking the button. search (back): after [search (max )] has been selected or the button has been clicked, the location with the next-longest execution time period compared to the currently searched location is searched. the temporary up cursor is moved to the start position of the searched pattern and the temporary down cursor is moved to the end position. this has the same operation as clicking the button. (5) [help] menu file view operation jump help _ _ _ _ _ this window _ h elp topics _ this window: this displays help topics about this window. help topics: this opens a dialog box for searching the az4000?s help contents (topics).
chapter 5 window reference user?s manual u15031ej1v0um 71 [caution] ? the pattern window is closed when the analyze window is closed. [errors] ? an error dialog box will appear if an active pattern window already exists when attempting to change a window from hold mode to active mode.
chapter 5 window reference user?s manual u15031ej1v0um 72 trace view window [trace view window] [general] this window displays a list of the az trace data that is shown in a state transition chart. when this window is opened from the analyze window, it can be used for detailed checking of az trace data. this window can be opened via any of the following operations. ? in the analyze window, select [browse] [t race view] on the menu bar. ? in the analyze window, click the button. ? in the analyze window, press and hold the alt key while pressing the b and t keys in that order. [window] figure 5-14. trace view window (b) (c) (a) (d) (e) (f) (a) time view area (d) event view area (b) address view area (e) parameter view area (c) task view area (f) return view area [functions] the following items are described below. (1) description of areas (2) az trace data display method (3) how to read az trace data (4) az trace data search method (1) description of areas (a) time view area this area shows the relative time from the start of the az trace. the unit is milliseconds (msec).
chapter 5 window reference user?s manual u15031ej1v0um 73 (b) address view area this area shows the user program?s execution address. this address is the start address of the next instruction after the actual event occurred. (c) task view area this area shows the task or interrupt name for each event. (d) event view area this area shows the types of events in the az trace data. these event types are listed below. ? ? ? ? servicecall this indicates a service call. the name of the service call is shown in parentheses. ? ? ? ? serviceret this indicates a returned service call. the name of the returned service call is shown in parentheses. ? ? ? ? int this indicates the start of an interrupt. the name of the interrupt request is shown in parentheses. ? ? ? ? intret this indicates the end of an interrupt. the name of the interrupt request is shown in parentheses. ? ? ? ? taskstart this indicates a task?s initial start. ? ? ? ? idle this indicates a switch to idle mode. (e) parameter view area if the az trace data is a service call, this indicates the service call?s target object. (f) return view area if the az trace data is a returned service call, this indicates the service call?s return value. (2) az trace data display method the az trace data is shown at the specified position on the state transition chart. [operation methods] <1> specify the view start position for the az trace data. if a temporary up cursor is displayed on the state transition chart, the temporary up cursor marks the view start position. if it is not shown, the start of the trace data marks the view start position. <2> in the analyze window, select [browse] [t race view] on the menu bar to open this window. remark if the temporary up cursor is moved in the state transition chart while the trace view window is open, the az trace data?s view position is automatically updated.
chapter 5 window reference user?s manual u15031ej1v0um 74 (3) how to read az trace data figure 5-15 presents a guide for reading az trace data. figure 5-15. how to read az trace data (a) (b) (a) this indicates that 1.009 ms after the system was started, the service call ?sta_tsk? was issued at address 0x800131b0 by the task ?tsk(0002)? for the task ?tsk(0003)?. (b) this indicates that 1.011 ms after the system was started, the value ?e_ok? was returned in relation to service call ?sta_tsk? at address 0x80013b0. for details of returned values, see the rx4000 user?s manual. remark for ?serviceret?, if the corresponding service call event does not exist in the trace memory, a blank space will be shown between the parentheses. this can happen when the service call is executed from within a user program. (4) az trace data search method the trace search dialog box, which can be opened via this window?s menu bar, can be used to search conditions such as execution task names, interrupt names, event types, or service call arguments. for details of the search method, see the description of the trace search dialog box. [operation methods] <1> select [view] [s earch] via this window?s menu bar. <2> set the search conditions in the trace search dialog box that appears automatically. <3> click the button in the trace search dialog box to start searching in the direction of newer trace times, or click the button in the trace search dialog box to start searching in the direction of older trace times. <4> update the az trace data view position at the start of the searched location.
chapter 5 window reference user?s manual u15031ej1v0um 75 [menu bar] (1) [file] menu file edit operation help _ _ _ _ open... _ save as... _ print _ close _ view _ open?: this function is not supported in this version. save as?: this opens the file select dialog box. currently displayed data in this window is updated or renamed and saved to a view file in this window. the default file name extension for files displayed in this window is ?.azt?. print: this function is not supported in this version. close: this closes this window. (2) [edit] menu file edit operation help _ _ _ _ copy _ view _ copy: this function is not supported in this version. (3) [view] menu file edit operation help _ _ _ _ view _ timetag _ address _ task _ show _ hide _ search... _ event _ parameter _ return _ search?: this opens the trace search dialog box. timetag: this specifies show or hide mode for the ?time? item. select [show] or [hi de] from the sub menu. address: this specifies show or hide mode for the ?address? item. select [show] or [hi de] from the sub menu. task: this specifies show or hide mode for the ?task? item. select [show] or [hi de] from the sub menu. event: this specifies show or hide mode for the ?event? item. select [show] or [hi de] from the sub menu.
chapter 5 window reference user?s manual u15031ej1v0um 76 parameter: this specifies show or hide mode for the ?parameter? item. select [show] or [hi de] from the sub menu. return: this specifies show or hide mode for the ?return? item. select [show] or [hi de] from the sub menu. (4) [operation] menu file edit operation help _ _ _ _ view _ active _ hold _ active: this switches this window from hold mode to active mode. hold: this switches this window from active mode to hold mode. (5) [help] menu file edit operation help _ _ _ _ view _ this window _ help topics _ this window: this displays help topics about this window. help topics: this opens a dialog box for searching the az4000?s help contents (topics). [cautions] ? this window is closed when the analyze window is closed. ? for ?serviceret?, if the corresponding service call event does not exist in the trace buffer, a blank space will be shown between the parentheses. this can happen when the service call is executed from within a user program. [errors] ? an error dialog box will appear if an active trace view window already exists when attempting to change a window from hold mode to active mode.
chapter 5 window reference user?s manual u15031ej1v0um 77 trace search dialog box [trace search] [general] this dialog box is used to set search conditions before searching az trace data via the trace view window. the search conditions that can be set include execution task names, interrupt names, event types, or service call arguments. this dialog box can be opened via any of the following operations. ? in the trace view window, select [view] [s earch] on the menu bar. ? in the trace view window, press and hold the alt key while pressing the v and s keys in that order. [window] figure 5-16. trace search dialog box (a) search data setting area (b) search condition setting area [functions] the following items are described below. (1) description of areas (2) search methods (1) description of areas (a) search data setting area this area is used to specify search items in the az trace data shown in the trace view window. select the check box next to the desired search item. several items can be selected. task: select this when searching task names or interrupt names. event: select this when searching event types. parameter: select this when searching service call arguments.
chapter 5 window reference user?s manual u15031ej1v0um 78 (b) search condition setting area this area is used to specify search conditions for each search item. from each drop-down list, select a task name, interrupt name, event type, or service call argument that exists in the collected az trace data. (2) search methods [operation methods] <1> in the <>, select the target item to be searched. several items can be selected. <2> search conditions in the <> can be directly input from the keyboard or can be selected from a drop-down list. <3> click the button or the button. searches are performed as described below. ? if the button has been clicked: a search of locations that match the previously set search conditions is performed in the direction of newer trace times, and the trace view window is displayed starting at the first search location. ? if the button has been clicked: a search of locations that match the previously set search conditions is performed in the direction of older trace times, and the trace view window is displayed starting at the first search location. the following are some examples of search condition settings in the trace search dialog box. figure 5-17. example of trace search settings (when searching for task ?tsk(1001)?)
chapter 5 window reference user?s manual u15031ej1v0um 79 figure 5-18. example of trace search settings (when task ?tsk(1001)? searches for location where service call ?sta_tsk? was issued) figure 5-19. example of trace search settings (when task ?tsk(1001)? searches for location where service call ?sta_tsk? was issued for task ?tsk(1002)?) [function buttons] target operation button function search condition locations matching the previously set search conditions are searched in the direction of newer trace times, and the trace view window is displayed starting at the first search location. search condition locations matching the previously set search conditions are searched in the direction of older trace times, and the trace view window is displayed starting at the first search location. ? closes this dialog box. ? displays help topics about this dialog box. [errors] ? a warning alarm is sounded if no phenomena that match the specified search condition exist in the az trace data. ? a warning alarm is sounded if the or button has been clicked without first selecting at least one item from the <>.
chapter 5 window reference user?s manual u15031ej1v0um 80 file select dialog box [file open] [general] this dialog box is used to select a view file to be loaded or saved. this dialog box can be opened via any of the following operations. ? in any window, select [file] [o pen] on the menu bar. ? in any window, select [file] [save a s] on the menu bar. ? in any window, click the button. ? in any window, click the button. ? in any window, click the alt key while pressing the f and o keys in that order. ? in any window, click the alt key while pressing the f and a keys in that order. [window] figure 5-20. file select dialog box
chapter 5 window reference user?s manual u15031ej1v0um 81 [functions] the following items are described below. (1) view file extensions and file formats (2) retrieval of view information (1) view file extensions and file formats view file types vary according to the window being used, and the various types can be identified by their file name extensions. the default extensions used for different types of view files used in various az4000 windows are listed in table 5-9 below. table 5-9. view file types and extensions view file type extension file format analyze window .az binary format cpu window .azc pattern window .azp trace view window .azt csv format (2) retrieval of view information the way that view information is retrieved by loading a view file differs according to the window, as described below. (a) analyze window view information is retrieved into the currently open analyze window. consequently, to retain the currently displayed state transition chart, set the currently open analyze window to ?hold? mode, then open a new analyze window and load a view file. (b) other windows a new window is opened in ?hold mode? and the view information is retrieved into that window. consequently, the open window?s view information is retained as it is on the screen. [function buttons] target operation button function select file loads or saves the selected view file. ? closes this dialog box. ? displays help topics about this dialog box (this button is displayed only when the az4000?s help file has been installed).
chapter 5 window reference user?s manual u15031ej1v0um 82 [errors] ? an error dialog box appears if the specified file name?s format is incorrect. ? an error dialog box appears if an attempt is made to load a non-existent file. ? an error dialog box appears if an attempt is made to save a write-protected file. ? an overwrite warning message appears if an attempt is made to save a new file with the same name as an older file. ? an error dialog box appears if an attempt is made to load data that cannot be handled by the current window.
user?s manual u15031ej1v0um 83 appendix a error messages the az4000?s error messages are listed using the following format. error message error no. action by user (1/2) not enough memory. 1000 there is not enough available memory on the machine. close unnecessary windows, then retry execution. internal error. 1001 an unexpected error has occurred. retry execution from the start. can't change to active mode. 1010 another window is already open in active mode, so this window cannot be changed to active mode. either change the other (active) window to hold mode or close it, then change this window to active mode. illegal file name. 1020 an illegal character, character string, or format was used in a file name. check the file name and retry execution. not exist file. 1021 the specified file name does not exist. specify a valid file name. can't write file. 1022 cannot write to file, either due to a lack of disk space or because the target file is a read-only file. specify a file on another disk or a file that is not a read-only file. illegal file format. 1023 the target file does not have the correct format and therefore cannot be read. check the file?s contents. not implement az interface. 1100 cannot connect to debugger because the az interface has not been implemented on the debugger. confirm that the debugger is tip-compliant. can't switch trace mode. 1110 an error occurred during az trace on/off switching. data in the rx4000 or az monitor may have been corrupted. either reload the load module or restart the debugger and the az4000. not specified trace buffer region. 1118 az trace on is set in a state where the trace buffer region is not specified. in the az option dialog box, specify a trace buffer region, then set az trace on. can't upload. 1120 an error occurred during processing to upload trace data. the trace memory region setting may be incorrect. confirm whether or not correct addresses were specified for the trace memory region. also, make sure that the memory information addresses specified during configuration of the rtos do not overlap with the az monitor?s region. no trace data. 1121 the executed data does not include any trace data. set az trace on again, then execute the user program and upload trace data.
appendix a error messages user?s manual u15031ej1v0um 84 (2/2) illegal trace data. 1122 the time tag in the trace data may be incorrect. make sure that the user?s own coding block has been coded correctly. illegal trace buffer address. 1210 address range specified by trace buffer region specification is not correct. specify a correct address range for the trace buffer region. not exist pattern. 1400 the specified pattern does not exist in the trace data between the up cursor and down cursor. extend the width between the up and down cursors and retry execution. if this error occurs even when the maximum width has been set, the specified pattern does not exist at all in the trace data.
user?s manual u15031ej1v0um 85 appendix b index [a] accuracy of times .....................................................22 activation method.....................................................23 active mode .............................................................47 analyze window........................................................37 az monitor creation ................................................................16 initialization...........................................................21 az option dialog box................................................35 az trace data display method .....................................................73 how to read ..........................................................74 search method .....................................................74 az trace off ....................................................30, 33 az trace on ................................................ 22, 30, 33 az4000 window........................................................30 az4000.exe...............................................................23 azmon.o ...................................................................20 _azmon_countmode..............................................17 _azmon_getcounter..............................................18 _azmon_inittimer ..................................................17 _azmon_maxcount ................................................17 _azmon_timepercount .........................................17 azusr.mip............................................................16, 19 [c] certain phenomena..................................................52 communication control.............................................42 cpu usage display method .....................................................58 cpu window.............................................................56 creating load module ...............................................21 csv format...............................................................81 cycle start handler ...................................................22 [d] data queue...............................................................40 debugger .................................................................15 debugging method ...................................................24 delete mode.............................................................42 detail mode ..............................................................43 disassembled text display........................................48 down cursor .............................................................38 [e] error messages ....................................................... 83 event........................................................................ 73 event flag............................................................11, 40 extension ................................................................. 81 [f] file format................................................................ 81 file select dialog box............................................... 80 [g] grid line ................................................................... 41 [h] histogram display .................................................... 65 hold mode ......................................................... 47, 81 [i] idle task ................................................................... 40 installation................................................................ 23 interrupt ................................................................... 40 maskable interrupt................................................ 40 non-maskable interrupt ........................................ 40 interrupt handler ...................................................... 40 [j] ?jump to end? button................................................ 39 ?jump to start? button............................................... 39 [l] link directive file ...................................................... 21 [m] mailbox .................................................................... 40 mark......................................................................... 42 media ....................................................................... 23 memory list .............................................................. 48 memory pool ............................................................ 40 memory pool management ...................................... 42 mkmon.bat ............................................................... 20 monitor program ...................................................... 16 mutex ....................................................................... 40 [o] object ................................................................ 38, 50
appendix b index user?s manual u15031ej1v0um 86 addition .................................................................50 changing order of displayed .................................50 limitation...............................................................50 object name..........................................................40 object select dialog box...........................................49 operating environment .............................................15 [p] pattern......................................................................61 condition...............................................................62 mode .....................................................................62 pattern distribution display method .....................................................67 how to read...........................................................68 pattern search dialog box ........................................52 pattern set dialog box ..............................................61 pattern window .........................................................65 [r] real-time os ............................................................15 resource ..................................................................22 [s] scale change button.................................................39 search certain phenomena ..............................................52 event type .............................................................74 interrupt name.................................................53, 74 object ...................................................................44 pattern ............................................................53, 70 processing time ....................................................66 service call argument ...........................................74 state transition chart .............................................40 task name.......................................................53, 74 trace.....................................................................78 search condition...........................................52, 61, 77 search mode ......................................................53, 61 semaphore .........................................................11, 40 service call ...............................................................22 issued name/returned name .................................73 return value ......................................................... 73 setup.exe ................................................................. 23 simple search button ............................................... 39 sort mode ................................................................ 51 source text display................................................... 48 standard mode ........................................................ 42 state transition chart display method..................................................... 40 how to read .......................................................... 41 search method ..................................................... 44 view mode............................................................ 41 status bar................................................................. 31 system configuration................................................ 13 system execution time ............................................. 57 [t] task.......................................................................... 40 task execution time.................................................. 57 task switching.......................................................... 53 temporary down cursor............................................ 38 temporary up cursor ................................................ 38 termination method.................................................. 23 timer counter ........................................................... 17 tip ........................................................................... 11 tool bar .................................................................... 30 tool interface protocol .............................................. 11 trace buffer specification region ........................ 22, 36 trace form................................................................ 35 trace search dialog box .......................................... 77 trace view window .................................................. 72 [u] up cursor ................................................................. 38 upload................................................................ 31, 33 user?s own coding block .......................................... 16 [v] view file.................................................................... 80 view mode ............................................................... 41
although nec has taken all possible steps to ensure that the documentation supplied to our customers is complete, bug free and up-to-date, we readily accept that errors may occur. despite all the care and precautions we've taken, you may encounter problems in the documentation. please complete this form whenever you'd like to report errors or suggest improvements to us. hong kong, philippines, oceania nec electronics hong kong ltd. fax: +852-2886-9022/9044 korea nec electronics hong kong ltd. seoul branch fax: 02-528-4411 taiwan nec electronics taiwan ltd. fax: 02-2719-5951 address north america nec electronics inc. corporate communications dept. fax: 1-800-729-9288 1-408-588-6130 europe nec electronics (europe) gmbh technical documentation dept. fax: +49-211-6503-274 south america nec do brasil s.a. fax: +55-11-6462-6829 asian nations except philippines nec electronics singapore pte. ltd. fax: +65-250-3583 japan nec semiconductor technical hotline fax: 044-435-9608 i would like to report the following error/make the following suggestion: document title: document number: page number: thank you for your kind support. if possible, please fax the referenced page or drawing. excellent good acceptable poor document rating clarity technical accuracy organization cs 00.6 name company from: tel. fax facsimile message


▲Up To Search▲   

 
Price & Availability of AZ4000V4

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X